package drawingtools;
import program.*;

import gui.DrawingPanel;

import java.awt.event.MouseEvent;

import diagramobjects.DiagramObject;
import diagramobjects.DiagramObjects;
import diagramobjects.UseCase;
import diagramobjects.UseCaseDashed;

import program.DatabaseConnection;


public class UseCaseDashedTool extends UseCaseTool{
	
	public UseCaseDashedTool(DiagramObjects go, DrawingPanel dp)
	{
		super(go, dp);
	}
	
	@Override
	public void mousePressed(MouseEvent arg0) {
		
		System.out.println("mouseClicked, clickcount:" + ClickCount);
		
	
	
			GeomObjs.AddGeometricObjectToPanel(new UseCaseDashed(arg0.getX(), arg0.getY(),0,0, "wwCase", 0));
			DrawPanel.addSelected();
			tempObject = GeomObjs.GetLastGeometricbjectFromPanel();
	
			IncreaseClickCount();



	}

	
}
